/* eslint valid-jsdoc: "off" */

'use strict';

/**
 * @param {Egg.EggAppInfo} appInfo app info
 */
module.exports = appInfo => {
  /**
   * built-in config
   * @type {Egg.EggAppConfig}
   **/
  const config = exports = {
    keys:appInfo.name + '_1655101656451_9942',
    middleware:['auth'],
    security:{
      csrf:{//关闭CSRF拦截
        enable:false
      }
    },
    mysql:{
      client: {
        // host
        host: 'localhost',
        // port
        port: '3306',
        // username
        user: 'root',
        // password
        password: '123456',
        // database
        database: 'my_tables',    
      },
    }
  };

  
  return {
    ...config,
  };
};
